package com.example.logistics_oa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.comment_oa.pojos.xinzi.JibenXinzijisuan;
import com.example.logistics_oa.service.JibenXinzijisuanService;
import com.example.logistics_oa.mapper.JibenXinzijisuanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 安徽彭于晏
* @description 针对表【jiben_xinzijisuan】的数据库操作Service实现
* @createDate 2023-02-01 15:52:46
*/
@Service
public class JibenXinzijisuanServiceImpl extends ServiceImpl<JibenXinzijisuanMapper, JibenXinzijisuan>
    implements JibenXinzijisuanService{

    @Autowired
    JibenXinzijisuanMapper jibenXinzijisuanMapper;

    @Override
    public int insertAll(JibenXinzijisuan jibenXinzijisuan) {
        return jibenXinzijisuanMapper.insertAll(jibenXinzijisuan);
    }

    @Override
    public List<JibenXinzijisuan> selectByJibenId(String jibenId) {
        return jibenXinzijisuanMapper.selectByJibenId(jibenId);
    }

    @Override
    public int updateIssendOne(int jibenzhujian) {
        return jibenXinzijisuanMapper.updateIssendOne(jibenzhujian);
    }

    @Override
    public int updateIssendAll(String jibenId) {
        return jibenXinzijisuanMapper.updateIssendAll(jibenId);
    }

    @Override
    public List<JibenXinzijisuan> selectByIdAndSend(String jibenId, int jibensend) {
        return jibenXinzijisuanMapper.selectByIdAndSend(jibenId,jibensend);
    }

    @Override
    public List<JibenXinzijisuan> selectOnePerson(String jibenId, String jibenGonghao) {
        return jibenXinzijisuanMapper.selectOnePerson(jibenId,jibenGonghao);
    }
}




